import 'package:oramemo/generated/json/base/json_field.dart';
import 'package:oramemo/generated/json/country_code_entity.g.dart';
import 'dart:convert';
export 'package:oramemo/generated/json/country_code_entity.g.dart';

@JsonSerializable()
class CountryCodeEntity {
	String? msg;
	int? code;
	List<CountryCodeData>? data;

	CountryCodeEntity();

	factory CountryCodeEntity.fromJson(Map<String, dynamic> json) => $CountryCodeEntityFromJson(json);

	Map<String, dynamic> toJson() => $CountryCodeEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CountryCodeData {
	CountryCodeDataParams? params;
	int? id;
	String? countryName;
	String? countryNameZh;
	String? countryCode;
	String? countryNameEn;
	String? nationalFlag;

	CountryCodeData();

	factory CountryCodeData.fromJson(Map<String, dynamic> json) => $CountryCodeDataFromJson(json);

	Map<String, dynamic> toJson() => $CountryCodeDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class CountryCodeDataParams {


	CountryCodeDataParams();

	factory CountryCodeDataParams.fromJson(Map<String, dynamic> json) => $CountryCodeDataParamsFromJson(json);

	Map<String, dynamic> toJson() => $CountryCodeDataParamsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}